﻿@{
    ViewBag.Title = "EditSysParam";
    Layout = null;
}
@model UcAsp.Net.Model.SysParam

<div>
    <input name="ID" type="hidden" name="ID" value="@Model.ID" />
    <p>
        <label>
            字段名称</label>
        <input class="text-input large-input" type="text" name="ParamName" value="@Model.ParamName"  />
    </p>
    <p>
        <label>
            显示名称</label>
        <input class="text-input large-input" type="text" name="ParamValue" value="@Model.ParamValue" />
    </p>
    <p>
        <label>
            变量描述</label>
        <input class="text-input large-input" type="text" name="ParamDesc" value="@Model.ParamDesc"  />
    </p>
    <p>
        <span class="btn save" >保存</span>
    </p>
 </div>
 <script>
     $(document).ready(function () {
         $(".save").click(function () {
             $.post("/Admin/SysParamSave", { ID: $("input[name='ID']").val(), ParamName: $("input[name='ParamName']").val(), ParamValue: $("input[name='ParamValue']").val(), ParamDesc: $("input[name='ParamDesc']").val() }, function (dataResult) {
                 location.reload();
             });
         })
     })
 </script>